using System;

namespace CStock
{
    public class RegExStructuresYahooStockSymbols_UK
	{
		private string uRL;

        string stockLine;
        string symbol;
        string name;
        string nameCheck;
		/// <summary>
		/// 
		/// </summary>
        public RegExStructuresYahooStockSymbols_UK()
		{
            uRL = "http://uk.finance.yahoo.com/q/cp?s=%5E";//add the index name at the end, like DJI
            stockLine = @"tabledata1.><b><a.href=..q.s=(?<1>.{150})";
                //S&P: http://uk.finance.yahoo.com/q/cp?s=^GSPC

            name = @"tabledata1.><small>(?<1>\w*?\s?\w*?\s?\w*?\s?\w*?\s?\w*?\s?\w*?\s?\w*)</small>";
            nameCheck = @"tabledata1.><small>(?<1>\D*)</small>";
            //match any character which is NOT a digit (includes also ampersand for AT&T 
            //->which is written : AT&amp;T INC.

            symbol = @"(?<1>\w*)</a></b></td>";//within line match!
            symbol = @"(?<1>\w*?\.?\w*)</a></b></td>";//within line match!
            
            

			
			
		}
      
        public string URL
        {
            get
            {
                return uRL;
            }
            set
            {
                uRL = value;
            }

        }
         public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }

        }
         public string NameCheck
        {
            get
            {
                return nameCheck;
            }
            set
            {
                nameCheck = value;
            }

        }
        
         public string Symbol
         {
             get
             {
                 return symbol;
             }
             set
             {
                 symbol = value;
             }

         }
         public string StockLine
         {
             get
             {
                 return stockLine;
             }
             set
             {
                 stockLine = value;
             }

         }
	

	}
}
